/* 
 * Gneat (http://gneat.org)
 *
 * (C) Copyright 2011 and beyond - Claudio Stella, all rights reserved.
 *
 * This file is part of Gneat.
 *
 * Gneat is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License (LGPL)
 * as published by the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Gneat is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * and the GNU General Public License, for completeness, along with Gneat.  
 * If not, see <http://www.gnu.org/licenses/>.
 */
package org.neatshell.gneat.client.presenter.core;

import java.util.HashMap;

import org.neatshell.gneat.client.callback.CallbackPresenter;
import org.neatshell.gneat.client.callback.CallbackString;
import org.neatshell.gneat.client.handler.BlurHandler;
import org.neatshell.gneat.client.handler.ChangeHandler;
import org.neatshell.gneat.client.handler.CustomHandler;
import org.neatshell.gneat.client.handler.ErrorHandler;
import org.neatshell.gneat.client.handler.FocusHandler;
import org.neatshell.gneat.client.handler.LoadHandler;
import org.neatshell.gneat.client.handler.ScrollHandler;
import org.neatshell.gneat.client.handler.SubmitHandler;
import org.neatshell.gneat.client.handler.keyboard.KeyDownHandler;
import org.neatshell.gneat.client.handler.keyboard.KeyPressHandler;
import org.neatshell.gneat.client.handler.keyboard.KeyUpHandler;
import org.neatshell.gneat.client.handler.mouse.ClickHandler;
import org.neatshell.gneat.client.handler.mouse.DblClickHandler;
import org.neatshell.gneat.client.handler.mouse.MouseDownHandler;
import org.neatshell.gneat.client.handler.mouse.MouseMoveHandler;
import org.neatshell.gneat.client.handler.mouse.MouseOutHandler;
import org.neatshell.gneat.client.handler.mouse.MouseOverHandler;
import org.neatshell.gneat.client.handler.mouse.MouseUpHandler;
import org.neatshell.gneat.client.presenter.core.Presenter.IView;
import org.neatshell.gneat.client.presenter.core.manipulation.css.Css;

public class PresenterNull implements IPresenter {
	private static PresenterNull _$INSTANCE = null;
	
	public static PresenterNull get() {
		if (_$INSTANCE == null) _$INSTANCE = new PresenterNull();
		return _$INSTANCE;
	}

	private PresenterNull() {}
	
	@Override
	public IPresenterList add(IPresenter... presenters) {
		return new PresenterList(presenters);
	}

	@Override
	public IPresenterList add(IPresenterList list) {
		return new PresenterList(list);
	}

	@Override
	public IPresenter addClass(String... classNames) {
		return get();
	}

	@Override
	public IPresenter after(IPresenter... presenters) {
		return get();
	}
	
	@Override
	public IPresenter after(IPresenterList list) {
		return get();
	}
	
	@Override
	public IPresenter after(String... html) {
		return get();
	}

	@Override
	public IPresenter append(IPresenter... presenters) {
		return get();
	}

	@Override
	public IPresenter append(IPresenterList list) {
		return get();
	}

	@Override
	public IPresenter append(String... html) {
		return get();
	}

	@Override
	public IPresenter appendTo(IPresenter target) {
		return get();
	}

	@Override
	public String attr(Attribute attr) {
		return null;
	}

	@Override
	public IPresenter attr(Attribute attr, String value) {
		return get();
	}

	@Override
	public String attr(String attrName) {
		return null;
	}

	@Override
	public IPresenter attr(String name, String value) {
		return get();
	}

	@Override
	public IPresenter before(IPresenter... presenters) {
		return get();
	}

	@Override
	public IPresenter before(IPresenterList list) {
		return get();
	}

	@Override
	public IPresenter before(String... html) {
		return get();
	}

	@Override
	public IPresenter blur() {
		return get();
	}

	@Override
	public IPresenter blur(BlurHandler handler) {
		return get();
	}

	@Override
	public IPresenter change() {
		return get();
	}

	@Override
	public IPresenter change(ChangeHandler handler) {
		return get();
	}

	@Override
	public IPresenter child(Integer index) {
		return get();
	}
	
	@Override
	public IPresenter child(Integer index, Integer nodeType) {
		return get();
	}
	
	@Override
	public IPresenterList children() {
		return new PresenterList();
	}

	@Override
	public IPresenterList children(Integer nodeType) {
		return new PresenterList();
	}

//	@Override
//	public IPresenterList children(String... filters) {
//		return new PresenterList();
//	}

	@Override
	public IPresenter click() {
		return get();
	}
	
	@Override
	public IPresenter click(ClickHandler handler) {
		return get();
	}
		
	@Override
	public IPresenter clone() {
		return get();
	}
	
	@Override
	public IPresenter clone(Boolean withDataAndEvents) {
		return get();
	}
	
	@Override
	public IPresenter clone(Boolean withDataAndEvents, Boolean deepWithDataAndEvents) {
		return get();
	}
	
	@Override
	public IPresenter content(Integer index) {
		return get();
	}

	@Override
	public IPresenterList contents() {
		return new PresenterList();
	}

	@Override
	public String css(Css cssProp) {
		return null;
	}

	@Override
	public IPresenter css(Css cssProp, String propValue) {
		return get();
	}

	@Override
	public String css(String propName) {
		return null;
	}

	@Override
	public IPresenter css(String propName, String propValue) {
		return get();
	}
	
	@Override
	public HashMap<String, Object> data() {
		return null;
	}

	@Override
	public Object data(String key) {
		return null;
	}

	@Override
	public IPresenter data(String key, Object value) {
		return get();
	}

	@Override
	public IPresenter dblclick() {
		return get();
	}

	@Override
	public IPresenter dblclick(DblClickHandler handler) {
		return get();
	}

	@Override
	public IPresenter detach() {
		return get();
	}

	@Override
	public IPresenter empty() {
		return get();
	}
	
	@Override
	public IPresenter error(ErrorHandler handler) {
		return get();
	}

	@Override
	public IPresenter error() {
		return get();
	}

	@Override
	public IPresenterList find() {
		return new PresenterList();
	}

	@Override
	public IPresenterList find(Integer nodeType) {
		return new PresenterList();
	}
	
//	@Override
//	public IPresenterList find(String... filters) {
//		return new PresenterList();
//	}

	@Override
	public IPresenter focus() {
		return get();
	}

	@Override
	public IPresenter focus(FocusHandler handler) {
		return get();
	}

	@Override
	public IView getView() {
		return null;
	}
	
	@Override
	public boolean has(IPresenter... contained) {
		return false;
	}

	@Override
	public boolean has(IPresenterList contained) {
		return false;
	}
	
	@Override
	public boolean hasAttr(Attribute... attrs) {
		return false;
	}
	
	@Override
	public boolean hasAttr(String... attrNames) {
		return false;
	}
	
	@Override
	public boolean hasClass(String... classNames) {
		return false;
	}

	@Override
	public boolean hasProp(Property... props) {
		return false;
	}
	
	@Override
	public boolean hasProp(String... propNames) {
		return false;
	}
	
	@Override
	public IPresenter height(String value) {
		return get();
	}

	@Override
	public IPresenter hide() {
		return get();
	}

	@Override
	public String html() {
		return null;
	}

	@Override
	public IPresenter html(String html) {
		return get();
	}

	@Override
	public String id() {
		return null;
	}

	@Override
	public String id(boolean auto) {
		return null;
	}

	@Override
	public IPresenter id(String id) {
		return get();
	}

	@Override
	public IPresenter insertAfter(IPresenter target) {
		return get();
	}

	@Override
	public IPresenter insertBefore(IPresenter target) {
		return get();
	}

	@Override
	public boolean is() {
		return false;
	}
	
	@Override
	public boolean is(Integer nodeType) {
		return false;
	}

	@Override
	public boolean is(IPresenter... presenters) {
		return false;
	}

	@Override
	public boolean is(IPresenterList list) {
		return false;
	}

//	@Override
//	public boolean is(String... filters) {
//		return false;
//	}

	@Override
	public IPresenter keydown() {
		return get();
	}

	@Override
	public IPresenter keydown(KeyDownHandler handler) {
		return get();
	}

	@Override
	public IPresenter keypress() {
		return get();
	}

	@Override
	public IPresenter keypress(KeyPressHandler handler) {
		return get();
	}

	@Override
	public IPresenter keyup() {
		return get();
	}

	@Override
	public IPresenter keyup(KeyUpHandler handler) {
		return get();
	}

	@Override
	public IPresenter load() {
		return get();
	}

	@Override
	public IPresenter load(LoadHandler handler) {
		return get();
	}

	@Override
	public IPresenter mousedown() {
		return get();
	}

	@Override
	public IPresenter mousedown(MouseDownHandler handler) {
		return get();
	}

	@Override
	public IPresenter mousemove() {
		return get();
	}

	@Override
	public IPresenter mousemove(MouseMoveHandler handler) {
		return get();
	}

	@Override
	public IPresenter mouseout() {
		return get();
	}

	@Override
	public IPresenter mouseout(MouseOutHandler handler) {
		return get();
	}

	@Override
	public IPresenter mouseover() {
		return get();
	}

	@Override
	public IPresenter mouseover(MouseOverHandler handler) {
		return get();
	}

	@Override
	public IPresenter mouseup() {
		return get();
	}

	@Override
	public IPresenter mouseup(MouseUpHandler handler) {
		return get();
	}

	@Override
	public IPresenter next() {
		return get();
	}

	@Override
	public IPresenter next(Integer nodeType) {
		return get();
	}

	@Override
	public IPresenterList nextAll() {
		return new PresenterList();
	}

	@Override
	public IPresenterList nextAll(Integer nodeType) {
		return new PresenterList();
	}

	@Override
	public IPresenterList nextUntil(IPresenter until) {
		return new PresenterList();
	}

	@Override
	public IPresenterList nextUntil(IPresenter until, Integer nodeType) {
		return new PresenterList();
	}

	@Override
	public IPresenter off(String eventName) {
		return get();
	}

	@Override
	public IPresenter on(CustomHandler handler) {
		return get();
	}

	@Override
	public IPresenter parent() {
		return get();
	}

	@Override
	public IPresenterList parents() {
		return new PresenterList();
	}

	@Override
	public IPresenterList parentsUntil(IPresenter until) {
		return new PresenterList();
	}

	@Override
	public IPresenter prepend(IPresenter... presenters) {
		return get();
	}

	@Override
	public IPresenter prepend(IPresenterList list) {
		return get();
	}

	@Override
	public IPresenter prepend(String... html) {
		return get();
	}

	@Override
	public IPresenter prependTo(IPresenter target) {
		return get();
	}

	@Override
	public IPresenter prev() {
		return get();
	}

	@Override
	public IPresenter prev(Integer nodeType) {
		return get();	
	}

	@Override
	public IPresenterList prevAll() {
		return new PresenterList();
	}

	@Override
	public IPresenterList prevAll(Integer nodeType) {
		return new PresenterList();
	}

	@Override
	public IPresenterList prevUntil(IPresenter until) {
		return new PresenterList();
	}

	@Override
	public IPresenterList prevUntil(IPresenter until, Integer nodeType) {
		return new PresenterList();
	}

	@Override
	public String prop(Property prop) {
		return null;
	}

	@Override
	public IPresenter prop(Property prop, String propValue) {
		return get();
	}

	@Override
	public String prop(String propName) {
		return null;
	}

	@Override
	public IPresenter prop(String propName, String propValue) {
		return get();
	}

	@Override
	public IPresenter remove() {
		return get();
	}

	@Override
	public IPresenter removeAttr(Attribute... attrs) {
		return get();
	}

	@Override
	public IPresenter removeAttr(String... attrNames) {
		return get();
	}

	@Override
	public IPresenter removeClass(String... classNames) {
		return get();
	}

	@Override
	public IPresenter removeProp(Property... props) {
		return get();
	}

	@Override
	public IPresenter removeProp(String... propNames) {
		return get();
	}

	@Override
	public IPresenter replaceClass(String oldClassName, String newClassName) {
		return get();
	}

	@Override
	public IPresenter resetClass() {
		return get();
	}

	@Override
	public IPresenter scroll() {
		return get();
	}

	@Override
	public IPresenter scroll(ScrollHandler handler) {
		return get();
	}

	@Override
	public IPresenter shallow() {
		return get();
	}

	@Override
	public IPresenter shallow(Boolean withDataAndEvents) {
		return get();
	}
	
	@Override
	public IPresenter show() {
		return get();
	}

	@Override
	public IPresenterList siblings() {
		return new PresenterList();
	}

	@Override
	public IPresenterList siblings(Integer nodeType) {
		return new PresenterList();
	}

	@Override
	public IPresenter submit() {
		return get();
	}
	
	@Override
	public IPresenter submit(SubmitHandler handler) {
		return get();
	}
	
	@Override
	public String text() {
		return null;
	}

	@Override
	public IPresenter text(String text) {
		return get();
	}

	@Override
	public IPresenter toggle() {
		return get();
	}

	@Override
	public IPresenter toggleClass(String... classNames) {
		return get();
	}

	@Override
	public IPresenter trigger(String eventName) {
		return get();
	}

	@Override
	public IPresenter unwrap() {
		return get();
	}

	@Override
	public IPresenter val(String value) {
		return get();
	}
	
	@Override
	public String val() {
		return null;
	}
	
	@Override
	public IPresenter width(String value) {
		return get();
	}

	@Override
	public IPresenter wrap(IPresenter wrapper) {
		return get();
	}

	@Override
	public IPresenter wrap(CallbackPresenter callback) {
		return get();
	}
	
	@Override
	public IPresenter wrap(String html) {
		return get();
	}
	
	@Override
	public IPresenter wrap(CallbackString callback) {
		return get();
	}

//	@Override
//	public IPresenter wrapInner(IPresenter wrapper) {
//		return get();
//	}
//
//	@Override
//	public IPresenter wrapInner(String html) {
//		return get();
//	}
}